package com.laicunba.ext.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.laicunba.ext.pojo.PositionConditionVO;
import com.laicunba.ext.service.SlaveFinancingTargetService;
import com.laicunba.pojo.FinancingTargetDO;

@Service
public class SlaveFinancingTargetServiceImpl extends BaseService implements SlaveFinancingTargetService {

	@Override
	public FinancingTargetDO getFinancingTarget(String id) {
		return slaveGenericQueryDao.getEntity(FinancingTargetDO.class, id);
	}

	@Override
	public List<FinancingTargetDO> findFinancingTargetByPosition(PositionConditionVO condition) {
		return slaveGenericQueryDao.selectList("SLAVE_FINANCING_TARGET.findFinancingTargetByPosition", condition);
	}

	@Override
	public int countFinancingTargetByPosition(PositionConditionVO condition) {
		return slaveGenericQueryDao.selectOne("SLAVE_FINANCING_TARGET.countFinancingTargetByPosition", condition);
	}
	
}
